//
//  ViewController.m
//  NewBee
//
//  Created by leergou on 16/8/20.
//  Copyright © 2016年 WhiteHouse. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.

    self.view.backgroundColor = [UIColor whiteColor];
    
    [self test1];

}

// 接口1
- (void)test1{
    
    NSString *urlString = @"http://iosapi.itcast.cn/loveBeen/focus.json.php";
    NSDictionary *params = @{
                             @"call":@"1",
                             };
    
    [[STNetworkTools sharedTools] request:POST urlString:urlString parameters:params success:^(id response) {
      
        NSLog(@"%@",response);
        
    } failure:^(NSError *error) {
        
        NSLog(@"error:%@",error);
        
    }];
}


@end
